package args

import "github.com/spf13/cobra"

type ConfigArgs struct {
	Config     string `json:"config"`
	StaticDist string `json:"staticDist"`
}

func (s *ConfigArgs) Parse(cmd *cobra.Command) error {
	cmd.PersistentFlags().StringVarP(&s.Config, "config", "c", "", "config file")
	cmd.PersistentFlags().StringVarP(&s.StaticDist, "static", "s", "", "static dist")
	return nil
}
